home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / KoTemplateCreateDia.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-05-30  |  2.2 KB  |  76 lines

  1. /*
  2.    This file is part of the KDE project
  3.    Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
  4.                  2000 Werner Trobin <trobin@kde.org>
  5.  
  6.    This library is free software; you can redistribute it and/or
  7.    modify it under the terms of the GNU Library General Public
  8.    License as published by the Free Software Foundation; either
  9.    version 2 of the License, or (at your option) any later version.
  10.  
  11.    This library is distributed in the hope that it will be useful,
  12.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.    Library General Public License for more details.
  15.  
  16.    You should have received a copy of the GNU Library General Public License
  17.    along with this library; see the file COPYING.LIB.  If not, write to
  18.    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  19.  * Boston, MA 02110-1301, USA.
  20. */
  21.  
  22. #ifndef koTemplateCreateDia_h
  23. #define koTemplateCreateDia_h
  24.  
  25. #include <kdialogbase.h>
  26. #include <koffice_export.h>
  27.  
  28. class QString;
  29. class QPixmap;
  30. class QWidget;
  31. class KInstance;
  32. class KLineEdit;
  33. class QListViewItem;
  34. class KoTemplateCreateDiaPrivate;
  35.  
  36. /****************************************************************************
  37.  *
  38.  * Class: koTemplateCreateDia
  39.  *
  40.  ****************************************************************************/
  41.  
  42. class KOFFICEUI_EXPORT KoTemplateCreateDia : public KDialogBase
  43. {
  44.     Q_OBJECT
  45.  
  46. public:
  47.     KoTemplateCreateDia( const QCString &templateType, KInstance *instance,
  48.                          const QString &file, const QPixmap &pix, QWidget *parent=0L );
  49.     ~KoTemplateCreateDia();
  50.  
  51.     static void createTemplate( const QCString &templateType, KInstance *instance,
  52.                                 const QString &file, const QPixmap &pix, QWidget *parent=0L );
  53.  
  54. protected:
  55.     void slotOk();
  56.  
  57. private slots:
  58.     void slotDefault();
  59.     void slotCustom();
  60.     void slotSelect();
  61.     void slotNameChanged(const QString &name);
  62.  
  63.     void slotAddGroup();
  64.     void slotRemove();
  65.     void slotSelectionChanged();
  66. private:
  67.     void updatePixmap();
  68.     void fillGroupTree();
  69.  
  70.     QString m_file;
  71.     QPixmap m_pixmap;
  72.     KoTemplateCreateDiaPrivate *d;
  73. };
  74.  
  75. #endif
  76.